Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(x-editable): choice value update crash with 0 value #7335

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

soullivaneuh
Copy link
Member

@soullivaneuh soullivaneuh commented Jul 19, 2021

Because of the weak comparison, if we try to update a choice list field
with a value of 0, it is considered as a violation.

Subject

I am targeting this branch, because: #7289 (comment).

Closes #5231.

Changelog

### Fixed
- Crash on choice field inline edition with a 0 value

Because of the weak comparison, if we try to update a choice list field
with a value of 0, it is considered as a violation.
@jordisala1991 jordisala1991 merged commit a61028a into sonata-project:3.x Jul 19, 2021
@jordisala1991
Copy link
Member

Thanks @soullivaneuh

@soullivaneuh soullivaneuh deleted the x-editable-0-value branch July 20, 2021 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Key "" for array with keys "1, 0" does not exist.
3 participants